package com.onlinelearn.courseservice.dto;

import com.onlinelearn.courseservice.model.CourseCategory;
import com.onlinelearn.courseservice.model.CourseStatus;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

public class CourseDTO {
    private Long id;

    @NotBlank(message = "课程标题不能为空")
    @Size(min = 5, max = 100, message = "课程标题长度必须在5-100个字符之间")
    private String title;

    @Size(max = 500, message = "课程描述不能超过500个字符")
    private String description;

    @NotNull(message = "课程分类不能为空")
    private CourseCategory category;

    private BigDecimal price;

    private CourseStatus status;

    private Long teacherId;

    // Getters and Setters
} 